package com.mypofolio.model;

import java.util.StringTokenizer;

/**
 * @author  Paolo Cappelletti (Gempliss Srl)
 */
public class StockItem {
	
	public String code;
	public String label;
	public int quantity;
	public float price;
	public String lastUpdate;
	
	public StockItem(String val){
		StringTokenizer st=new StringTokenizer(val,"#");
		code=st.nextToken();
		label=st.nextToken();	
		quantity=Integer.parseInt(st.nextToken());
		lastUpdate=st.nextToken();		
	}

}
